package com.thug.managers;

import com.thug.engine.EntityManager;
import com.thug.engine.SceneManager;
import com.thug.entities.Wall;

public class WallManager extends EntityManager<Wall> {
	

	public WallManager(SceneManager s) {
		super(s);
	}

	@Override
	public void onLoad() {
		for(int i = 0; i < mEntities.size(); i++) {
			Wall ent = mEntities.get(i);
			ent.init();
		}
		
	}


	@Override
	public void update(float elapsedTime) {
		for(int i = 0; i < mEntities.size(); i++) {
			Wall ent = mEntities.get(i);
			ent.update(elapsedTime);
		}	
	}


	@Override
	public void onDestroy() {
		for(Wall wall : mEntities) {
			wall.dispose();
		}
		mEntities.clear();
		
	}

}
